const mongoose=require('mongoose');
const moment=require('moment');

const AuthSchema = new mongoose.Schema({
    code:String,
    access_token:String,
    refresh_token:String,
    user:{
        type:mongoose.Schema.ObjectId,
        ref:'User'
    },
    expires_in:Number,
    time:Date
});

module.exports=mongoose.model('Auth',AuthSchema);